.class Lcom/instagram/android/fragment/an;
.super Lcom/instagram/android/d/j/f;
.source "EditProfileFragment.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/instagram/android/d/j/f",
        "<",
        "Lcom/instagram/android/model/b;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/instagram/android/fragment/al;


# direct methods
.method constructor <init>(Lcom/instagram/android/fragment/al;)V
    .locals 0
    .parameter

    .prologue
    .line 478
    iput-object p1, p0, Lcom/instagram/android/fragment/an;->a:Lcom/instagram/android/fragment/al;

    invoke-direct {p0}, Lcom/instagram/android/d/j/f;-><init>()V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 2

    .prologue
    .line 503
    iget-object v0, p0, Lcom/instagram/android/fragment/an;->a:Lcom/instagram/android/fragment/al;

    invoke-static {v0}, Lcom/instagram/android/fragment/al;->o(Lcom/instagram/android/fragment/al;)Lcom/instagram/android/widget/IgSmallLoadingSpinner;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 504
    iget-object v0, p0, Lcom/instagram/android/fragment/an;->a:Lcom/instagram/android/fragment/al;

    invoke-static {v0}, Lcom/instagram/android/fragment/al;->o(Lcom/instagram/android/fragment/al;)Lcom/instagram/android/widget/IgSmallLoadingSpinner;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/instagram/android/widget/IgSmallLoadingSpinner;->setVisibility(I)V

    .line 506
    :cond_0
    invoke-super {p0}, Lcom/instagram/android/d/j/f;->a()V

    .line 507
    return-void
.end method

.method protected a(Lcom/instagram/android/model/b;)V
    .locals 5
    .parameter

    .prologue
    .line 482
    iget-object v0, p0, Lcom/instagram/android/fragment/an;->a:Lcom/instagram/android/fragment/al;

    invoke-static {v0, p1}, Lcom/instagram/android/fragment/al;->a(Lcom/instagram/android/fragment/al;Lcom/instagram/android/model/b;)Lcom/instagram/android/model/b;

    .line 484
    iget-object v0, p0, Lcom/instagram/android/fragment/an;->a:Lcom/instagram/android/fragment/al;

    invoke-static {v0}, Lcom/instagram/android/fragment/al;->c(Lcom/instagram/android/fragment/al;)Landroid/widget/EditText;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/fragment/an;->a:Lcom/instagram/android/fragment/al;

    invoke-static {v0}, Lcom/instagram/android/fragment/al;->c(Lcom/instagram/android/fragment/al;)Landroid/widget/EditText;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->length()I

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/fragment/an;->a:Lcom/instagram/android/fragment/al;

    invoke-static {v0}, Lcom/instagram/android/fragment/al;->c(Lcom/instagram/android/fragment/al;)Landroid/widget/EditText;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1}, Lcom/instagram/android/model/b;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 498
    :cond_0
    :goto_0
    return-void

    .line 490
    :cond_1
    invoke-virtual {p1}, Lcom/instagram/android/model/b;->b()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 491
    iget-object v0, p0, Lcom/instagram/android/fragment/an;->a:Lcom/instagram/android/fragment/al;

    invoke-static {v0}, Lcom/instagram/android/fragment/al;->m(Lcom/instagram/android/fragment/al;)V

    goto :goto_0

    .line 493
    :cond_2
    iget-object v0, p0, Lcom/instagram/android/fragment/an;->a:Lcom/instagram/android/fragment/al;

    invoke-static {v0}, Lcom/instagram/android/fragment/al;->n(Lcom/instagram/android/fragment/al;)V

    .line 494
    iget-object v0, p0, Lcom/instagram/android/fragment/an;->a:Lcom/instagram/android/fragment/al;

    sget v1, Lcom/facebook/ba;->username_x_is_not_available:I

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    invoke-virtual {p1}, Lcom/instagram/android/model/b;->a()Ljava/lang/String;

    move-result-object v4

    aput-object v4, v2, v3

    invoke-virtual {v0, v1, v2}, Lcom/instagram/android/fragment/al;->a(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/j;->a(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method

.method protected bridge synthetic a(Ljava/lang/Object;)V
    .locals 0
    .parameter

    .prologue
    .line 478
    check-cast p1, Lcom/instagram/android/model/b;

    invoke-virtual {p0, p1}, Lcom/instagram/android/fragment/an;->a(Lcom/instagram/android/model/b;)V

    return-void
.end method

.method public b()V
    .locals 2

    .prologue
    .line 511
    iget-object v0, p0, Lcom/instagram/android/fragment/an;->a:Lcom/instagram/android/fragment/al;

    invoke-static {v0}, Lcom/instagram/android/fragment/al;->o(Lcom/instagram/android/fragment/al;)Lcom/instagram/android/widget/IgSmallLoadingSpinner;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 512
    iget-object v0, p0, Lcom/instagram/android/fragment/an;->a:Lcom/instagram/android/fragment/al;

    invoke-static {v0}, Lcom/instagram/android/fragment/al;->o(Lcom/instagram/android/fragment/al;)Lcom/instagram/android/widget/IgSmallLoadingSpinner;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/instagram/android/widget/IgSmallLoadingSpinner;->setVisibility(I)V

    .line 514
    :cond_0
    invoke-super {p0}, Lcom/instagram/android/d/j/f;->b()V

    .line 515
    return-void
.end method
